package com.mla.fastdfs.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.mla.fastdfs.commom.Result;
import com.mla.fastdfs.dto.PermissionDto;
import com.mla.fastdfs.pojo.Permission;

import java.util.List;

/**
 * @author Jun
 * @version v1.0
 * @date 2020-08-17
 */
public interface PermissionService extends IService<Permission> {

    void insert(Permission record);

    void update(Permission record);

    void del(Integer id);

    Permission selectByPrimaryKey(Integer id);

    List<Permission> getList(Permission record);

    PageInfo<Permission> pageList(Permission record, Integer pageNo, Integer pageSize);

    Result savePerm(Permission record);

    Result getMenu(String userId);

    List<PermissionDto> treeList(Permission record);
}